package com.gr.dmbackend.controller.student;

import com.alibaba.fastjson.JSONObject;
import com.gr.dmbackend.service.student.GetStudentInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class GetStudentInfoController {

    @Autowired
    private GetStudentInfoService getStudentInfoService;

    @GetMapping("/api/student/get-info")
    public JSONObject getStudentInfo() {
        return getStudentInfoService.getStudentInfo();
    }

}
